#include "RandAglo.hpp"
#include "tools.hpp"
#include <cstdio>


int main()
{
    auto& ansi = lxj::OpenANSI::Instance();
    ansi.set_mode(1).set_color(76);
    lxj::Time time;

    auto& random = lxj::Random<float>::instance();
    float arr[5] = {};
    for (auto& i : arr) {
        i = random(1.0, 2.0);
    }
    auto value = lxj::findKthLargest(arr, 5, 5);
    std::printf("%.2e\n", value);
    return 0;
}